ARG CENTOS_VERSION=centos8.4.2105
FROM docker.io/library/centos:${CENTOS_VERSION}
ENV  GOPROXY https://goproxy.cn,direct
ENV  container docker

#基本工具
RUN minorver=8.5.2111 && sed -e "s|^mirrorlist=|#mirrorlist=|g" \
         -e "s|^#baseurl=http://mirror.centos.org/\$contentdir/\$releasever|baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos-vault/$minorver|g" \
         -i.bak \
         /etc/yum.repos.d/CentOS-*.repo
# RUN echo "----网络工具----" && \
    # yum install -y curl tcpdump  net-tools wget telnet